package com.dkm.biz.gl.persistence.entity;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;

import com.dkm.base.core.util.string.StringCollections;
import com.dkm.base.db.persistence.entity.TreeType;

/**
 * 对象功能:总分类表。用于显示树层次结构的分类，可以允许任何层次结构。 entity对象
 * 开发公司:唯心六艺软件 - Craft6.cn
 * 开发人员:winston
 * 创建时间:2014-07-22 11:07:05
 */
public class GlCatePo extends GlCateTbl implements TreeType<GlCatePo>{
	private static final long serialVersionUID = -2923079603623741846L;
	private List<GlCatePo> subs = new ArrayList<GlCatePo>();
	private String parentName;
	private String parentKey;
	private String cateKeyName;
	
	private String attachImageUrl;
	private String seoKeywords;
	private String seoTitle;
	private String seoDesc;
	
	private String fullParentName;
	private String isLeaf;
	
	private Map<String, Object> attrDataMap;

    private String airIds;
    private String textContent;
    private String textId;
    
    private String companyIds;
    
    
    
    
    
	public String getTextId() {
		return textId;
	}

	public void setTextId(String textId) {
		this.textId = textId;
	}

	public List<GlCatePo> getSubs() {
		return Collections.unmodifiableList(subs);
	}

	public String getFullParentName() {
		return fullParentName;
	}
	public String getAirIds() {
		return airIds;
	}

	public void setAirIds(String airIds) {
		this.airIds = airIds;
	}

	public String getTextContent() {
		return textContent;
	}

	public void setTextContent(String textContent) {
		this.textContent = textContent;
	}

	public void setFullParentName(String fullParentName) {
		this.fullParentName = fullParentName;
	}



	public String getIsLeaf() {
		return isLeaf;
	}



	public void setIsLeaf(String isLeaf) {
		this.isLeaf = isLeaf;
	}



	public void addSub(GlCatePo glCatePo){
		subs.add(glCatePo);
	}
	
	public List<String> parsePath(){
		return StringCollections.toList(getPath(), ".");
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public Map<String, Object> getAttrDataMap() {
		return attrDataMap;
	}

	public void setAttrDataMap(Map<String, Object> attrDataMap) {
		this.attrDataMap = attrDataMap;
	}

	public String getParentKey() {
		return parentKey;
	}

	public void setParentKey(String parentKey) {
		this.parentKey = parentKey;
	}

	public String getCateKeyName() {
		return cateKeyName;
	}

	public void setCateKeyName(String cateKeyName) {
		this.cateKeyName = cateKeyName;
	}

	public void setSubs(List<GlCatePo> subs) {
		this.subs = subs;
	}

	public String getAttachImageUrl() {
		return attachImageUrl;
	}

	public void setAttachImageUrl(String attachImageUrl) {
		this.attachImageUrl = attachImageUrl;
	}

	public String getSeoKeywords() {
		return seoKeywords;
	}

	public void setSeoKeywords(String seoKeywords) {
		this.seoKeywords = seoKeywords;
	}

	public String getSeoTitle() {
		return seoTitle;
	}

	public void setSeoTitle(String seoTitle) {
		this.seoTitle = seoTitle;
	}

	public String getSeoDesc() {
		return seoDesc;
	}

	public void setSeoDesc(String seoDesc) {
		this.seoDesc = seoDesc;
	}

	public String getCompanyIds() {
		return companyIds;
	}

	public void setCompanyIds(String companyIds) {
		this.companyIds = companyIds;
	}
}